package com.icbci.process.service;

import com.icbci.process.dao.ProcessDao;
import com.icbci.process.pojo.Process;
import com.icbci.process.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProcessService {

    @Autowired
    private ProcessDao processDao;


    public void save(List<Process> list){
        processDao.batchInsert(list);
    }

    public List<Process> findProcess(){
        return  processDao.findProcess();
    }

    public List<UserInfo> findUserInfo(){
        return processDao.getUserInfo();
    }

}
